<%@page import="com.situ.web.entity.Student"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="/Java1812Web/lib/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
</head>
<body>
<% 
List<Student> list = (List<Student>)request.getAttribute("list1");
%>
<div class = "container">
<a class = "btn btn-success" href = "<%=request.getContextPath()%> + /addStudent.html">添加</a>
<table>
<tr>
<th>编号</th>
<th>姓名</th>
<th>年龄</th>
<th>性别</th>
		</tr>
		<%
			for (Student student : list) {
		%>
<tr>
<td><%=student.getId()%></td>
<td><%=student.getName() %></td>
<td><%=student.getAge() %></td>
<td><%=student.getGender() %></td>
</tr>
<%
} 
%>
</table>
</div>
	

</body>
</html>